package com.itcast.activiti.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcast.activiti.entity.ApproveDefinition;
import com.itcast.activiti.entity.ApproveDefinitionHistory;

/**
 * <p>
 * 审批定义表  服务类
 * </p>
 *
 * @author itcast
 * @since 2021-03-29
 */
public interface IApproveDefinitionHistoryService extends IService<ApproveDefinitionHistory> {

    ApproveDefinitionHistory getApproveDefinitionHistory(Integer id);

    // 查询审批定义表
    ApproveDefinitionHistory getApproveDefinitionHistory(String deploymentId);

    void insertApproveDefinitionHistory(ApproveDefinition approveDefinition, String deploymentId);

    ApproveDefinitionHistory getLastDefinitionByByDefinitionIdAndTenantId(String definitionId, String tenantId);
}
